package whf.framework.util.var;

import java.util.Map;

/**
 * 获取变量容器
 * @author wanghaifeng
 * @create Jan 24, 2007 9:26:27 AM
 * 
 */
public interface VariableHolder {
	/**
	 * @property String:ANY
	 */
	public final static String ANY = "any";
	
	/**
	 * 获取变量容器
	 * @modify wanghaifeng Jan 24, 2007 9:29:10 AM
	 * @return
	 */
	public Map<String, Object> getHolder();
	
	/**
	 * 获取任意值，对于单值有用，例如now
	 * @modify wanghaifeng Jan 24, 2007 9:29:25 AM
	 * @return
	 */
	public Object getAny();
	
	/**
	 * 获取变量
	 * @modify wanghaifeng Jan 24, 2007 9:29:43 AM
	 * @param key
	 * @return
	 */
	public Object getVariable(String key);
	
	/**
	 * @return the scope of the variableHolder
	 */
	public VariableHolderScope getScope();
}
